package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.GzryFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 社区矫正工作人员信息-请求对象
 *
 * @author wenjie
 * @date 2024-04-15 11:37:27
 */
@Data
@Schema(description = "社区矫正工作人员信息采集表")
public class GzryFunctionaryCreateDTO implements Serializable {

    /**
     * 姓名
     */
    @Schema(description = "姓名", example = "张三")
    @NotBlank(message = "姓名不能为空")
    private String xm;

    /**
     * 英文名
     */
    @Schema(description = "英文名")
    private String ywm;

    /**
     * 性别
     */
    @Schema(description = "性别", example = "1")
    @NotBlank(message = "性别不能为空")
    private String xb;

    /**
     * 出生日期
     */
    @Schema(description = "出生日期", example = "2024-01-01")
    @NotNull(message = "出生日期不能为空")
    private LocalDate csrq;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号", example = "610418********2011")
    @NotBlank(message = "身份证号不能为空")
    private String sfzh;

    /**
     * 民族
     */
    @Schema(description = "民族", example = "01")
    @NotBlank(message = "民族不能为空")
    private String mz;

    /**
     * 政治面貌
     */
    @Schema(description = "政治面貌", example = "01")
    @NotBlank(message = "政治面貌不能为空")
    private String zzmm;

    /**
     * 婚姻状况
     */
    @Schema(description = "婚姻状况", example = "01")
    @NotBlank(message = "婚姻状况不能为空")
    private String hyzk;

    /**
     * 毕业院校
     */
    @Schema(description = "毕业院校", example = "清华大学")
    @NotBlank(message = "毕业院校不能为空")
    private String byyx;

    /**
     * 学历
     */
    @Schema(description = "学历", example = "01")
    @NotBlank(message = "学历不能为空")
    private String xl;

    /**
     * 最高学位
     */
    @Schema(description = "最高学位", example = "01")
    @NotBlank(message = "最高学位不能为空")
    private String zgxw;

    /**
     * 专业
     */
    @Schema(description = "专业", example = "110")
    private String zy;

    /**
     * 人员编制
     */
    @Schema(description = "人员编制", example = "01")
    @NotBlank(message = "人员编制不能为空")
    private String rybz;

    /**
     * 参加工作时间
     */
    @Schema(description = "参加工作时间", example = "2024-01-01")
    @NotNull(message = "参加工作时间不能为空")
    private LocalDate cjgzsj;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码", example = "13322222222")
    @NotBlank(message = "手机号码不能为空")
    private String sj;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String lxdh;

    /**
     * 电子邮箱
     */
    @Schema(description = "电子邮箱", example = "wwk24422665@qq.com")
    @NotBlank(message = "电子邮箱不能为空")
    private String dzyx;

    /**
     * 住址
     */
    @Schema(description = "住址", example = "**省**市**县**镇**村**号")
    @NotBlank(message = "住址不能为空")
    private String zz;

    /**
     * 是否在职
     */
    @Schema(description = "是否在职", example = "1")
    @NotBlank(message = "是否在职不能为空")
    private String ryzt;

    /**
     * 照片
     */
    @Schema(description = "照片", example = """
            [{"name": "09468fc20f2544e28891a058858fdf58.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    @NotEmpty(message = "照片不能为空")
    private List<GzryFileDTO> photoList;

    /**
     * 职务
     */
    @Schema(description = "职务", example = "[\"1\",\"113\"]")
    @Size(min = 1)
    @NotEmpty(message = "职务不能为空，且长度为2位")
    private List<String> positionList;

    /**
     * 家庭住址
     */
    @Schema(description = "家庭住址", example = "[\"460000\",\"46000A\",\"469006\",\"36327\"]")
    private List<String> areaList;
}